package server.authentification.module.crypto;

import com.twmacinta.util.MD2;
import com.twmacinta.util.MD5;
/*
 * GetPassword.java
 *
 * Created on 5 Ноябрь 2006 г., 2:54
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

public class GetPassword {
    public static String setHash(String login, String password, String seed){
            MD2 hash1=new MD2();
            MD5 hash2=new MD5(MD5.asHex(hash1.run(password+login))+seed);
            hash2.initNativeLibrary(true);
            return MD5.asHex(hash2.Final());
    }
}